<!DOCTYPE html>
<!--引入名称空间-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
</head>
<body>
<label style="color: red" th:text="${msg}">请输入账号密码</label>
<div>
    <form action="main.html" method="post" th:action="@{/login}">
        账号：<input name= "username" value="张蛟龙"/> <br>
        密码：<input name="password" value="22"/> <br>
        <input type="submit" value="提交"/> <br>
    </form>
</div>

</body>
</html>